﻿using CN2P.Recommendations.DomainModel;
using Neo4jClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CN2P.Recommendations.Repository.Impl
{
    public class ProductRecommendationRelationship : Relationship,
                                                     IRelationshipAllowingSourceNode<ProductReference>,
                                                     IRelationshipAllowingTargetNode<ProductReference>
    {
        public static readonly string TypeKey = "RECOMMENDATION";

        public ProductRecommendation RecommendationData 
        {
            get
            {
                return (ProductRecommendation)this.Data;
            } 
        }

        public ProductRecommendationRelationship()
            : base(null)
        {

        }

        public ProductRecommendationRelationship(NodeReference targetNode, ProductRecommendation recommendationData)
            : base(targetNode, recommendationData)
        {
            
        }

        public override string RelationshipTypeKey
        {
            get { return TypeKey; }
        }
    }
}
